/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Apigateway.Model
{

    /// <summary>
    ///  backendConfig
    /// </summary>
    public class BackendConfig
    {

        ///<summary>
        /// 接口ID
        ///</summary>
        public string BackendConfigId{ get; set; }
        ///<summary>
        /// 分组ID
        ///</summary>
        public string BaseGroupId{ get; set; }
        ///<summary>
        /// 环境：test、preview、online
        ///Required:true
        ///</summary>
        [Required]
        public string Environment{ get; set; }
        ///<summary>
        /// 后端地址
        ///</summary>
        public string BackendUrl{ get; set; }
        ///<summary>
        /// 后端服务类型：mock、HTTP/HTTPS
        ///Required:true
        ///</summary>
        [Required]
        public string BackendServiceType{ get; set; }
        ///<summary>
        /// header参数列表
        ///</summary>
        public List<SimpleParameter> HeaderParams{ get; set; }
        ///<summary>
        /// query参数列表
        ///</summary>
        public List<SimpleParameter> QueryParams{ get; set; }
        ///<summary>
        /// 描述
        ///</summary>
        public string Description{ get; set; }
        ///<summary>
        /// 发布日期，格式为毫秒级时间戳
        ///</summary>
        public long? CreateTime{ get; set; }
        ///<summary>
        /// 排序，赋值0时为默认的后端配置
        ///Required:true
        ///</summary>
        [Required]
        public int Sort{ get; set; }
        ///<summary>
        /// 排序，用于展示使用
        ///</summary>
        public int? UserSort{ get; set; }
        ///<summary>
        /// vpc网关id
        ///</summary>
        public string JdsfId{ get; set; }
        ///<summary>
        /// vpc后端地址
        ///</summary>
        public string JdsfParam{ get; set; }
        ///<summary>
        /// vpc网关所属region
        ///</summary>
        public string JdsfRegion{ get; set; }
        ///<summary>
        /// vpc网关创建者的pin
        ///</summary>
        public string JdsfPin{ get; set; }
    }
}
